//
//  WTSquareFootView.m
//  OneDay
//
//  Created by lanou on 16/1/22.
//  Copyright © 2016年 小明. All rights reserved.
//

#import "WTSquareFootView.h"

@implementation WTSquareFootView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
#pragma mark -- 评论的textField
        _commentButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _commentButton.frame = CGRectMake(20 * kRelativeLength_X, (49 - 20 * kRelativelength_Y) / 2, 280 * kRelativeLength_X, 20 * kRelativelength_Y);
        _commentButton.backgroundColor = [UIColor whiteColor];
        [_commentButton setTitle:@"我来说两句..." forState:(UIControlStateNormal)];
        _commentButton.titleLabel.textAlignment = NSTextAlignmentLeft;
        [_commentButton setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
        [self addSubview:_commentButton];
        
        
        
    
        
        
        
//        _commentTF = [[UITextField alloc]initWithFrame:CGRectMake(20 * kRelativeLength_X, (49 - 20 * kRelativelength_Y) / 2, 280 * kRelativeLength_X, 20 * kRelativelength_Y)];
//        _commentTF.placeholder = @"我来说两句";
//        _commentTF.delegate = self;
//        _commentTF.borderStyle = UITextBorderStyleRoundedRect;
//        _commentTF.clearsOnBeginEditing = YES;
//        _commentTF.clearButtonMode = UITextFieldViewModeAlways;
//        _commentTF.returnKeyType = UIReturnKeySend;
//        _commentTF.inputAccessoryView = _keyAssistView;
//        [_footView addSubview:_commentTF];
        
#pragma mark -- 分享按钮
        
        _shareButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _shareButton.frame = CGRectMake(_commentButton.right + 10 * kRelativeLength_X, _commentButton.top, 30 * kRelativeLength_X, _commentButton.height);
        [_shareButton setBackgroundImage:[UIImage imageNamed:@"m-fenxiang"] forState:(UIControlStateNormal)];
   
        [self addSubview:_shareButton];
        
        
        

        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
